import request from '@/utils/request'

/**
 * 风险清单数据项说明分页查询
 * @param {查询条件} data
 */
export function listProRiskChecklist(query) {
  return request({
    url: 'business/ProRiskChecklist/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增风险清单数据项说明
 * @param data
 */
export function addProRiskChecklist(data) {
  return request({
    url: 'business/ProRiskChecklist',
    method: 'post',
    data: data,
  })
}
/**
 * 修改风险清单数据项说明
 * @param data
 */
export function updateProRiskChecklist(data) {
  return request({
    url: 'business/ProRiskChecklist',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取风险清单数据项说明详情
 * @param {Id}
 */
export function getProRiskChecklist(id) {
  return request({
    url: 'business/ProRiskChecklist/' + id,
    method: 'get'
  })
}

/**
 * 删除风险清单数据项说明
 * @param {主键} pid
 */
export function delProRiskChecklist(pid) {
  return request({
    url: 'business/ProRiskChecklist/delete/' + pid,
    method: 'delete'
  })
}
